package datatypes.tv;

import java.util.ArrayList;
import java.util.List;

public class tvStarringRoles {
	List<tvStarringRole> tv_starring_roles;

	public tvStarringRoles() {
		this.tv_starring_roles = new ArrayList<tvStarringRole>();
	}
	
	public tvStarringRoles(tvStarringRole tv_starring_role) {
		this.tv_starring_roles = new ArrayList<tvStarringRole>();
		this.tv_starring_roles.add(tv_starring_role);
	}
	
	public tvStarringRoles(List<tvStarringRole> tv_starring_roles) {
		this.tv_starring_roles = new ArrayList<tvStarringRole>();
		this.tv_starring_roles.addAll(tv_starring_roles);
	}

	public void addStarringRole(tvStarringRole tv_starring_roles) {
		this.tv_starring_roles.add(tv_starring_roles);
	}
 
	
	public List<tvStarringRole> gettvStarringRoles(){
		return this.tv_starring_roles;
	}
	
	public tvStarringRole searchStarringRole(String Id){
		for (tvStarringRole starringRole: tv_starring_roles){
			if (starringRole.getId().equals(Id)){
				return starringRole;
			}
		}
		return null;
	}
	
 
}
